package com.homework.oop;

public class Calculate {
  private int i1, i2;
  private double d1, d2, d3;
  private String s1, s2;

  public Calculate(int i1, int i2) {
    if (i1 >= i2) {
      System.out.println(i1);
    }else{
      System.out.println(i2);
    }
  }

  public Calculate(double d1, double d2, double d3) {
    System.out.println(d1 * d2 * d3);
  }

  public Calculate(String s1, String s2) {
    if(s1 == s2){
      System.out.println(true);
    }else{
      System.out.println(false);
    }
  }

  public static void main(String[] args) {
    //
    Calculate c1 = new Calculate(1,5);
    Calculate c2 = new Calculate(1.6,2.4,3.7);
    Calculate c3 = new Calculate("abc","cba");
  }
}
